<?php

$conn = mysql_connect("10.8.9.9","yilunfenfen","data2012") or die ('Fail to connect localhost ');
		
		mysql_select_db("food",$conn) or die ('Fail to connect db');
		
mysql_query("SET NAMES 'UTF8'");
$sql = "SELECT * FROM food_user_basic WHERE user_mail='$_GET[user_mail]'";
$result=mysql_query($sql) or die(mysql_error()); 
$row=mysql_fetch_object($result); 
Header( "Content-type: image/gif"); 
echo $row->photo;

?>
